function* helloWorld(){
  yield 'hello';
  yield 'world';
  return 'enfing';
}
var hw=helloWorld();

console.log(hw.next())
console.log(hw.next())
console.log(hw.next())